<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddRealMoneyToWithdrawlogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('withdrawlogs', function (Blueprint $table) {
            $table->decimal('real_money',10,2)->after('money')->comment('实到金额');
            $table->decimal('cash_fee',8,2)->after('real_money')->comment('手续费');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('withdrawlogs', function (Blueprint $table) {
            //
        });
    }
}
